GBML manual / 3D

view3d_x

The camera’s x in the room, in pixels.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_x() -> real

Returns

real

Description

The camera's x in the room, in pixels counted from the room's top-left corner (x grows to the right, a tile is 8 pixels). It is where view3d_move or view3d_camera last left it.

Example

var tile_column = view3d_x() div 8;

The column of tiles the camera stands in.

On the GBA

Where view3d_move left it.

See also: 3D viewview3d_yview3d_angleview3d_camera